package org.team751.dev.subsystems;

import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.command.Subsystem;
import org.team751.dev.RobotMap;

/**
 * Manages the drivetrain
 * @author Sam Crow
 */
public class Drivetrain extends Subsystem {
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    
    private RobotDrive drive;
    
    public Drivetrain(){
        drive = new RobotDrive(RobotMap.driveLeft, RobotMap.driveRight);
    }
    
    public void driveWithJoystick(Joystick joystick){
        drive.arcadeDrive(joystick, true);
    }

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}
